export default {
  path: '/v1/user/',
  get: {
    info: (options: any) => {
      // debugger
      return {
        code: '0',
        data: {
          empid: '123456',
          name: 'N123456'
        },
        msg: '请求成功！',
        options
      }
    },
    menu3: (options: any) => {
      // debugger

      return {
        code: '0',
        data: [
          {
            path: '/home',
            name: 'MicroAppHome',
            meta: {
              title: '首页',
              isKeepAlive: true,
              isAffix: true,
              roles: ['admin', 'common'],
              icon: 'iconfont icon-shouye'
            },
            children: [
              {
                path: '/home/fun1',
                name: 'MicroAppFun12',
                meta: {
                  title: 'cs-icon',
                  isKeepAlive: true,
                  roles: ['admin', 'common'],
                  icon: 'CsIconDocx',
                  tagsViewName: '功能区1(自定义viewname)'
                }
              },
              {
                path: '/home/fun2',
                name: 'MicroAppFun2',
                meta: {
                  title: 'el-icon',
                  isKeepAlive: true,
                  roles: ['admin', 'common'],
                  icon: 'CsIconHome'
                }
              },
              {
                path: '/home/fun5',
                name: 'MicroAppFun3',
                meta: {
                  title: 'isHide隐藏',
                  isKeepAlive: true,
                  isHide: true,
                  isLink: 'https://csui.csair.com',
                  isIframe: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/home/iframesTwo',
                name: 'MicroAppFun3',
                meta: {
                  title: '外链iframe',
                  isKeepAlive: true,
                  isLink: 'https://csui2.csair.com',
                  isIframe: true,
                  roles: ['admin', 'common'],
                  icon: 'ElIconLink'
                }
              },
              {
                path: '/home/iframesTwo1',
                name: 'MicroAppFun3',
                meta: {
                  title: '外链iframe2',
                  isKeepAlive: true,
                  isLink: 'https://csui2.csair.com',
                  isIframe: true,
                  roles: ['admin', 'common'],
                  icon: 'ElIconLink'
                }
              },
              {
                // "path": "/fun/fun4",
                name: 'MicroAppFun4',
                meta: {
                  title: '外链跳出',
                  isKeepAlive: true,
                  isLink: 'https://csui.csair.com',
                  // isIframe: true,
                  roles: ['admin', 'common'],
                  icon: 'ElIconLink'
                }
              }
            ]
          },
          {
            path: '/fun',
            name: 'MicroAppFun',
            redirect: '/fun/fun1',
            meta: {
              title: '功能区',
              isKeepAlive: true,
              roles: ['admin', 'common']
            },
            children: [
              {
                path: '/fun/fun1',
                name: 'MicroAppFun1',
                meta: {
                  title: '功能区1',
                  isKeepAlive: true,
                  roles: ['admin', 'common'],
                  icon: 'iconfont icon-caidan',
                  tagsViewName: '功能区1'
                }
              },
              {
                path: '/fun/fun2',
                name: 'MicroAppFun2',
                meta: {
                  title: '功能区2',
                  isKeepAlive: true,
                  roles: ['admin', 'common'],
                  icon: 'iconfont icon-caidan'
                }
              },
              {
                path: '/fun/fun3',
                name: 'MicroAppFun3',
                meta: {
                  title: '共享数据',
                  isKeepAlive: true,
                  isHide: true,
                  roles: ['admin', 'common']
                }
              }
            ]
          },
          {
            path: '/demo',
            redirect: '/demo/table',
            meta: {
              title: '示例',
              isKeepAlive: true,
              roles: ['admin', 'common']
            },
            children: [
              {
                path: '/demo/table',
                redirect: '/demo/table/table-action',
                meta: {
                  title: '表格示例',
                  isKeepAlive: true,
                  roles: ['admin', 'common'],
                  icon: 'iconfont icon-caidan'
                },
                children: [
                  {
                    path: '/demo/table/table-action',
                    name: 'TableAction',
                    meta: {
                      title: '表格操作',
                      isKeepAlive: true,
                      roles: ['admin', 'common']
                    }
                  }
                ]
              },
              {
                path: '/demo/video',
                name: 'VideoIndex',
                meta: {
                  title: '视频播放器',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/org-tree',
                name: 'OrgTreeIndex',
                meta: {
                  title: '组织架构图',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/combination-tab',
                name: 'CombinationTabIndex',
                meta: {
                  title: '组合页签',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/card',
                name: 'CardIndex',
                meta: {
                  title: '门户卡片',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/test',
                name: 'TestDemo',
                meta: {
                  title: '面试题',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/side-menu',
                name: 'SideMenuIndex',
                meta: {
                  title: '门户侧边菜单',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/content-list',
                name: 'ContentListIndex',
                meta: {
                  title: '门户内容列表',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/announcement-list',
                name: 'AnnouncementListIndex',
                meta: {
                  title: '门户公告列表',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/personnel-list',
                name: 'PersonnelListIndex',
                meta: {
                  title: '门户人员列表',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/form-data',
                name: 'FormDataIndex',
                meta: {
                  title: '表格数据页',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              },
              {
                path: '/demo/info-details',
                name: 'InfoDetailsIndex',
                meta: {
                  title: '信息详情页',
                  isKeepAlive: true,
                  roles: ['admin', 'common']
                }
              }
            ]
          }
        ],
        msg: '请求成功！',
        options
      }
    },

    menu: () => {
      // debugger
      return {
        msg: '请求成功！',
        code: '0',
        data: {
          menuList: [
            {
              id: 'LPQPUTJT000481135507',
              parentId: null,
              code: 'Home',
              uri: '/home',
              name: '首页哈',
              type: 0,
              downward: 0,
              extAttr:
                '{"icon": "ElIconHomeFilled", "isLink": 0, "isAffix": 1, "linkUrl": "", "isIframe": 0, "isKeepAlive": 1}',
              sort: 1,
              moduleId: 'LPQPUEEV000357965834',
              remark: '',
              show: 1,
              children: null
            },
            {
              id: 'LPQPUTJT000481135507',
              parentId: null,
              code: 'test',
              uri: '/system',
              name: '人员管理',
              type: 0,
              downward: 0,
              extAttr:
                '{"icon": "CsIconPdf", "isLink": 0, "isAffix": 0, "linkUrl": "", "isIframe": 0, "isKeepAlive": 0}',
              sort: 1,
              moduleId: 'LPQPUEEV000357965834',
              remark: '',
              show: 1,
              children: null
            },
            {
              id: 'LPQPVBKI001718647837',
              parentId: null,
              code: 's1',
              uri: '/fun',
              name: '权限管理',
              type: 0,
              downward: 0,
              extAttr:
                '{"icon": "CsIconAudio", "isLink": 0, "isAffix": 0, "linkUrl": "", "isIframe": 0, "isKeepAlive": 0}',
              sort: 2,
              moduleId: 'LPQPUEEV000357965834',
              remark: '',
              show: 1,
              children: null
            },
            {
              id: 'LQ6BTDQQ000423313653',
              parentId: null,
              code: 'Project',
              uri: '/project',
              name: '项目管理',
              type: 0,
              downward: 0,
              extAttr:
                '{"icon": "iconfont icon-dongtai", "isLink": 0, "isAffix": 0, "linkUrl": "", "isIframe": 0, "isKeepAlive": 0}',
              sort: 60,
              moduleId: 'LPQPUEEV000357965834',
              remark: '',
              show: 1,
              children: [
                {
                  id: 'LQ6BY6F9000330128691',
                  parentId: 'LQ6BTDQQ000423313653',
                  code: 'ProjectProduct',
                  uri: '/project/product',
                  name: '产品信息管理',
                  type: 0,
                  downward: 0,
                  extAttr:
                    '{"icon": "iconfont icon-yunshangchuan_o", "isLink": 0, "isAffix": 0, "linkUrl": "", "isIframe": 0, "isKeepAlive": 0}',
                  sort: 50,
                  moduleId: 'LPQPUEEV000357965834',
                  remark: '',
                  show: 1,
                  children: null
                },
                {
                  id: 'LQ6BZ3QH000741614389',
                  parentId: 'LQ6BTDQQ000423313653',
                  code: 'ProjectProject',
                  uri: '/project/project',
                  name: '项目信息管理',
                  type: 0,
                  downward: 0,
                  extAttr:
                    '{"icon": "iconfont icon-diannao1", "isLink": 0, "isAffix": 0, "linkUrl": "", "isIframe": 0, "isKeepAlive": 0}',
                  sort: 51,
                  moduleId: 'LPQPUEEV000357965834',
                  remark: '',
                  show: 1,
                  children: null
                }
              ]
            }
          ],
          functionList: []
        }
      }
    }
  }
} as const
